package com.xbts.common.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;

/**
 * Entity基类
 *
 * @author yuanqu
 */
public class PageEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 当前记录起始索引
     */
    @TableField(exist = false)
    @JsonIgnore
    private Integer pageNum = 1;

    /**
     * 每页显示记录数
     */
    @TableField(exist = false)
    @JsonIgnore
    private Integer pageSize = 10;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
